<%@ include file="../tagJSONLibIncludes.jsp" %>
{
   title:'<fmt:message key="propertyDef.title.edit"/>',
   form:{actionUrl: '${auth}/propertyDef/${storageId}/${propertyDef.id}/edit',
         formName: 'propertyDef',
         fields:[{name:"name", label:"<fmt:message key="propertyDef.name"/>",disable:"true", type:"text", value:"${propertyDef.name}"},
            {name:"displayName", label:"<fmt:message key="propertyDef.displayName"/>", type:"text", value:"${propertyDef.displayName}"},
            {name:"propertyType", label:"<fmt:message key="propertyDef.propertyType"/>",disable:"true", type:"multiText", value:"${propertyDef.propertyType}", datasource:[
                {value:"",label:"<fmt:message key="gobal.option"/>"},
                <c:forEach items="${propertyTypes}" var="selectPropertyType">
                     {value:"${selectPropertyType.value}",label:"${selectPropertyType.label}"},
                </c:forEach>
            ]},
            {name:"maxlength", label:"<fmt:message key="propertyDef.maxlength"/>", type:"number", value:"${propertyDef.maxlength}"},
            {name:"isHidden",label:"<fmt:message key="propertyDef.isHidden"/>", disable:"${not propertyDef.editable}", type:"boolean", value:"${propertyDef.isHidden}"},
            {name:"readOnly",label:"<fmt:message key="propertyDef.readOnly"/>", disable:"${not propertyDef.editable}",type:"boolean", value:"${propertyDef.readOnly}"},
            {name:"defaultValue",label:"<fmt:message key="propertyDef.defaultValue"/>",disable:"${not propertyDef.editable}", type:"text", value:"${propertyDef.defaultValue}"},
            {name:"multiValue",label:"<fmt:message key="propertyDef.multiValue"/>",disable:"${not propertyDef.editable}", type:"boolean", value:"${propertyDef.multiValue}"},
            {name:"description",label:"<fmt:message key="propertyDef.description"/>", type:"longText", value:"${propertyDef.description}"}],
         buttons:[{name:"btnCancel", label:"<fmt:message key="btn.cancel"/>"},
                  {name:"btnReset", label:"<fmt:message key="btn.reset"/>", type:"reset"},
                  {name:"btnAdd", label:"<fmt:message key="btn.update"/>"}]
        }
}